Hyphenation was allowed for certain long command names in amsldoc.tex; this presented technical difficulties because normally deactivates hyphenation for tt fonts. The method chosen to reinstate hyphenation was to turn off the encoding-specific function OT1+cmtt that disables the hyphenchar for tt fonts; see the definition of allowtthyphens in amsdtx.dtx. Then a list of all tt words in the document was gathered (from the .idx file, produced by the cn, fn, pkg, etc. commands) and showhyphens was applied to this list. The result was another list in the resulting / log, containing those words in a form suitable for the argument of hyphenation. That list was then edited by hand to overrule undesirable hyphenations; words with acceptable hyphenations were dropped from the list, as they don't need to be repeated there.